import Vue from 'vue';
import Router from 'vue-router';
import selectCourse from '@modules/common/selectCourse.vue';
import studentIndex from '@modules/student/index.vue';


import courseInformationDescription from '@modules/student/courseInformation/description.vue';
import courseInformationNotice from '@modules/student/courseInformation/notice.vue';
import courseInformationPlan from '@modules/student/courseInformation/plan.vue';
import courseInformationReference from '@modules/student/courseInformation/reference.vue';
import courseInformationEvaluation from '@modules/student/courseInformation/evaluation.vue';
import courseInformationResource from '@modules/student/courseInformation/resource.vue';
import onlineHomeworkCurrent from '@modules/student/onlineHomework/current.vue';
import joinGroup from '@modules/student/onlineHomework/joinGroup.vue';
import currentGroup from '@modules/student/onlineHomework/currentGroup.vue';
import evaluationHomeworkCurrent from '@modules/student/evaluationHomework/current.vue';
import scoreList from '@modules/student/score/list.vue';


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'selectCourse',
      component: selectCourse
    },
    {
      path: '/index',
      name: 'studentIndex',
        component: studentIndex,
        children: [
            {
                path: '/courseInformationDescription',
                name: 'courseInformationDescription',
                component: courseInformationDescription
            },
            {
                path: '/courseInformationNotice',
                name: 'courseInformationNotice',
                component: courseInformationNotice
            },{
                path: '/courseInformationPlan',
                name: 'courseInformationPlan',
                component: courseInformationPlan
            },{
                path: '/courseInformationReference',
                name: 'courseInformationReference',
                component: courseInformationReference
            },{
                path: '/courseInformationEvaluation',
                name: 'courseInformationEvaluation',
                component: courseInformationEvaluation
            },{
                path: '/courseInformationResource',
                name: 'courseInformationResource',
                component: courseInformationResource
            },{
                path: '/onlineHomeworkCurrent',
                name: 'onlineHomeworkCurrent',
                component: onlineHomeworkCurrent
            },{
                path: '/joinGroup/:homework',
                name: 'joinGroup',
                component: joinGroup,
                props: true
            },{
                path: '/currentGroup/:homework',
                name: 'currentGroup',
                component: currentGroup,
                props: true
            },{
                path: '/evaluationHomeworkCurrent',
                name: 'evaluationHomeworkCurrent',
                component: evaluationHomeworkCurrent
            },{
                path: '/scoreList',
                name: 'scoreList',
                component: scoreList
            }
        ]
    }
  ]
})
